package com.tgh.gles2.c4.move;
import com.tgh.gles2.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class GLActivity extends Activity{

    private MySurfaceView surfaceView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_c4_move);
        surfaceView=(MySurfaceView) findViewById(R.id.esview);
    }
    
    @Override
    protected void onResume() {
        super.onResume();
        surfaceView.onResume();
    }
    
    @Override
    protected void onPause() {
        super.onPause();
        surfaceView.onPause();
    }

    public void left(View view) {
        surfaceView.left();
    }
    public void up(View view) {
        surfaceView.up();
    }
    public void down(View view) {
        surfaceView.down();
    }
    public void right(View view) {
        surfaceView.right();
    }
}
